
<div id="categorias_div">
	<h3 class="h3borde">
		<strong><?php echo gettext("Categorias")?></strong>
	</h3>

	<div class="panel-group" id="accordion">
		<div class="panel panel-info">
			<div class="panel-heading panel-plus-link">
				<a data-toggle="collapse" data-parent="#accordion" href="#collapseOne"> <?php echo gettext("Compra Venta")?>
				</a>
			</div>
			<div id="collapseOne" class="panel-collapse collapse">
				<div class='panel-body'>
					<?php	 

					$result = mysql_query("SELECT * FROM categorias");
					while ($categoria = mysql_fetch_array($result)){
						echo "<a href=".getCategoriaURLPath($categoria['categoria_id'], "compra-venta").">$categoria[nombre]</a><br>";
					}

					?>
				</div>
			</div>
		</div>
		<div class="panel panel-info">
			<div class="panel-heading panel-plus-link">
				<a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo"> <?php echo gettext("Servicios")?>
				</a>
			</div>
			<div id="collapseTwo" class="panel-collapse collapse">
				<div class='panel-body'>
					<?php	 

					$result = mysql_query("SELECT * FROM cat_servicios");
					while ($categoria = mysql_fetch_array($result)){
						echo "<a href=".getCategoriaURLPath($categoria['categoria_id'], "servicios").">$categoria[nombre]</a><br>";
					}

					?>
				</div>
			</div>
		</div>

		<div class="panel panel-info">
			<div class="panel-heading panel-plus-link">
				<a data-toggle="collapse" data-parent="#accordion" href="#collapse3"><?php echo gettext("Vehículos")?>
				</a>
			</div>
			<div id="collapse3" class="panel-collapse collapse">
				<div class='panel-body'>
					<?php	 

					$result = mysql_query("SELECT * FROM cat_vehiculos");
					while ($categoria = mysql_fetch_array($result)){
						echo "<a href=".getCategoriaURLPath($categoria['categoria_id'],"vehiculos").">$categoria[nombre]</a><br>";
					}

					?>
				</div>
			</div>
		</div>

		<div class="panel panel-info">
			<div class="panel-heading panel-plus-link">
				<a data-toggle="collapse" data-parent="#accordion" href="#collapse4"> <?php echo gettext("Inmuebles")?>
				</a>
			</div>
			<div id="collapse4" class="panel-collapse collapse">
				<div class='panel-body'>
					<?php	 

					$result = mysql_query("SELECT * FROM cat_inmuebles");
					while ($categoria = mysql_fetch_array($result)){
						echo "<a href=".getCategoriaURLPath($categoria['categoria_id'],"inmuebles").">$categoria[nombre]</a><br>";
					}

					?>
				</div>
			</div>
		</div>


		<div class="panel panel-info">
			<div class="panel-heading panel-plus-link">
				<a data-toggle="collapse" data-parent="#accordion" href="#collapse5"> <?php echo gettext("Empleos")?>
				</a>
			</div>
			<div id="collapse5" class="panel-collapse collapse">
				<div class='panel-body'>
					<?php	 

					$result = mysql_query("SELECT * FROM cat_empleos");
					while ($categoria = mysql_fetch_array($result)){
						echo "<a href=".getCategoriaURLPath($categoria['categoria_id'],"empleos").">$categoria[nombre]</a><br>";
					}

					?>
				</div>
			</div>
		</div>

		<div class="panel panel-info">
			<div class="panel-heading panel-plus-link">
				<a data-toggle="collapse" data-parent="#accordion" href="#collapse6"> <?php echo gettext("Clases - Cursos")?>
				</a>
			</div>
			<div id="collapse6" class="panel-collapse collapse">
				<div class='panel-body'>
					<?php	 

					$result = mysql_query("SELECT * FROM cat_clases_cursos");
					while ($categoria = mysql_fetch_array($result)){
						echo "<a href=".getCategoriaURLPath($categoria['categoria_id'],"clases-cursos").">$categoria[nombre]</a><br>";
					}

					?>
				</div>
			</div>
		</div>

		<div class="panel panel-info">
			<div class="panel-heading panel-plus-link">
				<a data-toggle="collapse" data-parent="#accordion" href="#collapse7"> <?php echo gettext("Turismo")?>
				</a>
			</div>
			<div id="collapse7" class="panel-collapse collapse">
				<div class='panel-body'>
					<?php	 

					$result = mysql_query("SELECT * FROM cat_turismo");
					while ($categoria = mysql_fetch_array($result)){
						echo "<a href=".getCategoriaURLPath($categoria['categoria_id'],"turismo").">$categoria[nombre]</a><br>";
					}

					?>
				</div>
			</div>
		</div>
	</div>

</div>

